Homeowners using garden sheds or log cabins in the wrong way could be breaking planning laws and face fines or enforcement notices from councils.