US President Joe Biden has said that Myanmar's military must relinquish power and that it should release all the lawmakers and activists that it has detained.