A Belfast man who knocked his grandmother to the ground by smashing a teacup over her head has been jailed for nine months.