He repeatedly banged his partner's head on the floor, the court was told