Angular analysis and branching fraction measurement of the decay B0 to K*0 mu+ mu-