Phase transition and its connection with molecular motions in [Cu(NH3)5](BF4)2